package com.cp.dao;

import com.cp.repository.ConvictionClass;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;


@Mapper
public interface ConvictionClassMapper {
    @Select("SELECT * FROM conviction_class WHERE id = #{id}")
    @Results({
            @Result(id = true, property = "id", column = "id"),
		    @Result(property = "content", column = "content")
    })
    ConvictionClass getById(Integer id);
}